package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:52
 * @Description: TODO
 */
public class PersonnelDistribution {
    private String position;

    private int count;

    public PersonnelDistribution() {}

    public com.caipin.domain.web.PersonnelDistribution setPosition(String position) {
        this.position = position;
        return this;
    }

    public com.caipin.domain.web.PersonnelDistribution setCount(int count) {
        this.count = count;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.PersonnelDistribution))
            return false;
        com.caipin.domain.web.PersonnelDistribution other = (com.caipin.domain.web.PersonnelDistribution)o;
        if (!other.canEqual(this))
            return false;
        Object this$position = getPosition(), other$position = other.getPosition();
        return ((this$position == null) ? (other$position != null) : !this$position.equals(other$position)) ? false : (!(getCount() != other.getCount()));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.PersonnelDistribution;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $position = getPosition();
        result = result * 59 + (($position == null) ? 43 : $position.hashCode());
        return result * 59 + getCount();
    }

    public String toString() {
        return "PersonnelDistribution(position=" + getPosition() + ", count=" + getCount() + ")";
    }

    public PersonnelDistribution(String position, int count) {
        this.position = position;
        this.count = count;
    }

    public String getPosition() {
        return this.position;
    }

    public int getCount() {
        return this.count;
    }
}

